<?php

declare(strict_types=1);

namespace App\Model\PssLogModel;

use App\Model\BaseModel\BasePssLogModel;

class JavaApiLog extends BasePssLogModel
{
    public $table = 'java_api_log';
    /**
     * 添加日志
     * @param array $param
     */
    public function addLog(string $method,string $route,string $request_param,string $response,$used_time)
    {
        return $this->insert([
            'method'            => $method,
            'route'             => $route,
            'request_param'     => $request_param,
            'response'          => $response,
            'used_time'         => $used_time,
            'created_time'      => date("Y-m-d H:i:s"),
        ]);
    }
}
